package cn.demo.text.editor.strategy.format.process;

import java.util.HashMap;
import java.util.Map;

public class FormatFactory {

    public static final Map<String, Format> context = new HashMap<>();

    public static Format getFormat(String format) {
        return context.get(format) == null ? new DefaultFormat() : context.get(format);
    }

}
